// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router';

import Routers from './router'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';

Vue.use(App);
Vue.config.productionTip = false;
Vue.use(VueRouter);
Vue.use(Routers);
Vue.use(ViewUI);

/* eslint-disable no-new */
// The routing configuration
const RouterConfig = {
  routes: Routers
};
const router = new VueRouter(RouterConfig);

new Vue({
  el: '#app',
  router: router,
  render: h => h(App)
});
